package com.IO.Commons;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class A01 {
    public static void main(String[] args) throws IOException {
        // File src = new File("D:\\TestFile\\commons\\copy\\a.txt");
        // File dest = new File("D:\\TestFile\\commons\\copy\\copy.txt");
        // FileUtils.copyFile(src,dest);
        
        // File src = new File("D:\\TestFile\\commons\\copyDirectory\\aaa");
        // File dest = new File("D:\\TestFile\\commons\\copyDirectory\\bbb");
        // FileUtils.copyDirectory(src, dest);
        
        File src = new File("D:\\TestFile\\commons\\copyDirectory\\ccc");
        FileUtils.cleanDirectory(src);
    }
}
